package com.logistics.account.entity.model;

import com.logistics.utils.bean.SaveBasic;
import lombok.Data;

import java.util.List;

@Data
public class AccountSave extends SaveBasic {

    private String id;
    private String account;
    private String erpUserId;
    private String password;
    private String code;
    private String userName;
    private String mobile;
    private String email;
    private String wx;
    private String qq;
    private String province;
    private String city;
    private String area;
    private String address;
    private String post;
    private String organization;
    private String dep;
    private String roleIds;
    private String erpDeptCode;
    private String erpUniqueId;

    /**
     *
     * @param account
     * @param password
     * @param userName
     * @param erpDeptCode
     * @return
     */
    public static  AccountSave build(String account, String password, String userName, String erpDeptCode,String erpUniqueId) {
        AccountSave accountSave = new AccountSave();
        accountSave.setAccount(account);
        accountSave.setPassword(password);
        accountSave.setUserName(userName);
        accountSave.setErpDeptCode(erpDeptCode);
        accountSave.setErpUniqueId(erpUniqueId);
        return accountSave;
    }
}
